package meterMonitor.mapper;

import meterMonitor.model.MonitorMonth;
import meterMonitor.model.MonitorYear;
import org.apache.ibatis.annotations.Param;

import java.sql.Timestamp;
import java.util.List;

public interface MonitorYearMapper {
    List<String> queryTimeQuantum(String start, String end);

    MonitorYear queryOne(MonitorYear monitorYear);

    MonitorYear queryOneWater(MonitorYear monitorYear);

    MonitorYear queryOneElectricity(MonitorYear monitorYear);


    List<MonitorYear> queryData(@Param("fromTime") String fromTime, @Param("toTime") String toTime, @Param("codes") String codes);

    List<MonitorYear> queryDataByType(@Param("fromTime") String fromTime, @Param("toTime") String toTime, @Param("codes") String codes,int type);
}
